package cc.mrbird.management.service.impl;

import cc.mrbird.management.dao.AreaDao;
import cc.mrbird.management.domain.BaseArea;
import cc.mrbird.management.domain.Criteria;
import cc.mrbird.management.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaServiceImpl implements AreaService {
	@Autowired
	private AreaDao areaDao;

	public List<BaseArea> findProvince() {
		return areaDao.findProvince();
	}

	public List<BaseArea> findCity(Criteria paramCriteria) {
		return areaDao.findCity(paramCriteria);
	}

	public List<BaseArea> findCounty(Criteria paramCriteria) {
		return areaDao.findCounty(paramCriteria);
	}

}
